<?php


namespace App\Http\Requests\Warehousing\Tally;


use Illuminate\Foundation\Http\FormRequest;

class StoreDetailRequest extends FormRequest
{
    /**
     * @return array
     * @author luffyzhao@vip.126.com
     */
    public function rules()
    {
        return [
            'barcode' => ['required', 'max:50'],
            'quantity' => ['required', 'integer'],
            'batch' => ['required', 'max:50'],
            'attribute' => ['required', 'in:0,1,2'],
        ];
    }
}